package com.sinochem.yunlian.ship.base.feign;

import java.util.List;

import com.sinochem.yunlian.ship.api.vo.uc.UserInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import com.sinochem.yunlian.ship.api.vo.user.UcResourceInfo;
import com.sinochem.yunlian.ship.api.vo.uc.UcUserInfo;

/**
 * 
 *
 * @author chengyiping
 * @create 2017-11-23 8:11
 */
@FeignClient(value = "ship-ucenter")
@RequestMapping("api")
public interface IUserService {

	@RequestMapping(value = "/ucUser/getCurUserResourceList/{token}/{userId}", method = RequestMethod.GET)
	List<UcResourceInfo> getCurUserResourceList(@PathVariable(value = "token") String token,
			@PathVariable(value = "userId") String userId);

	/**
	 * 根据条件获取用户信息（包含公司信息）
	 * @param userInfo
	 * @return
	 */
	@RequestMapping(value = "/ucUser/getUserInfoByCondition", method = RequestMethod.POST,consumes="application/json")
	public UcUserInfo getUserInfoByCondition(@RequestBody UserInfo userInfo);

	@RequestMapping(value = "/ucUser/getuserMessage/{userId}", method = RequestMethod.GET)
	public @ResponseBody UcUserInfo getuserMessage(@PathVariable("userId") String userId);
	

}
